<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base :: header (title='生产任务')" />
<link th:href="@{plugins/common/css/basemessage.css}" rel="stylesheet" />
<link th:href="@{css/Production/productionTask.css}" rel="stylesheet" />
<body>
	<div class="main-content blank_bg">
		<div>
			<div>
				<div class="row" style="">
					<div>
						<div class="div_bg">
							<!-- 调用Production/productionPublic里的queryList，查询行 -->
							<div th:include="Production/productionPublicCol :: queryListNewtask" />
							
							<!-- 生产任务表 start -->
							<div style="margin-top: 5px;">
								<table id="taskTablet" class="table dataTable table-hover">
								</table>
							</div>
							<!-- 生产任务表 end -->
						</div>
						
						<!-- 产品工艺路线显示表 start -->
						<div class="div_bg" style="width: 80%;margin-top: 15px;display: inline-table;">
							<div style="line-height: 30px;">
								<span class="titleX" style="margin-bottom: 10px;">产品工艺路线</span>
								<div style="float: right;">
									<button id="synchroTechnology" class="btn btn-default" type="button">同步标准工艺路线</button>
									<button id="mergeProcess" class="btn btn-default" type="button">工序合并</button>
									<button id="cancelMergeProcess" class="btn btn-default" type="button" style="display: none;">取消合并</button>
									<button id="addProcess" class="btn btn-default" type="button">新增工艺</button>
									<button id="saveProcess" class="btn btn-default" type="button">保存工艺</button>
								</div>
							</div>
							<div id="newProcess">
								<table id="newProcessTablet" class="table dataTable table-hover" style="word-break:break-all; word-wrap:break-all;">
								</table>
							</div>
						</div>
						<!-- 产品工艺路线显示表 end -->
						
						<!-- 标准工艺路线显示表 start -->
						<div class="div_bg" style="width: 19%;margin-top: 15px;float:right;display: inline-table;margin-left: 10px;">
							<div style="line-height: 30px;" >
								<span class="titleX" style="margin-bottom: 10px;">标准工艺路线</span>
							</div>
							<div id="oldProcess">
								<table id="oldProcessTable" class="table dataTable table-hover">
								</table>
							</div>
						</div>
						<!-- 标准工艺路线显示表 end -->
					</div>
					
					<!-- 新增任务模态框 start -->
					<div class="modal fade " id="addProductionModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
						<div class="modal-dialog" style="width: 800px; height: 220px;">
							<div class="modal-content" style="width: auto;">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
									<h4 class="modal-title" id="titleModal">新增任务</h4>
								</div>
								<div class="modal-body" style="height: auto; padding: 10px;">
									<form id="addProuctionForm" class="form-group">
										<div style="display: inline-block;overflow: hidden;margin-right: 15px;" id="">
											<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="">
												<tr>
													<td class="title"><span class="sub">单号：</span></td>
													<td colspan="2">
														<input type="text" id="dispatchingfBillNo" name="fBillNo" class="clean_c form-control" readonly="readonly">
														<input type="hidden" id="dispatchingfIcmoId" name="fIcmoId" class="clean_c form-control" readonly="readonly">
													</td>
													<td class="title"><span class="sub">计划时间：</span></td>
													<td colspan="2"><input type="text" id="dispatchingfPlanDate" name="fPlanDate" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">产品名称：</span></td>
													<td colspan="5"><input type="text" id="dispatchingfName" name="fName" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">产品代码：</span></td>
													<td colspan="5"><input type="text" id="dispatchingfNumber" name="fNumber" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">工序号：</span></td>
													<td><input type="text" id="dispatchingfOperSN" name="fOperSN" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">工序名称：</span></td>
													<td><input type="text" id="dispatchingfOperName" name="fOper" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">工作中心：</span></td>
													<td>
														<input type="text" id="dispatchingfDepName" name="fDepName" class="clean_c form-control" readonly="readonly">
														<input type="hidden" id="dispatchingfDepid" name="fDepid" class="clean_c form-control" readonly="readonly">
													</td>
												</tr>
												<tr>
													<td class="title"><span class="sub">设备组：</span></td>
													<td>
														<input type="text" id="dispatchingfMacGroupName" name="fMacGroupName" class="clean_c form-control" readonly="readonly">
														<input type="hidden" id="dispatchingfMacGroupId" name="fMacGroupId" class="clean_c form-control" readonly="readonly">
													</td>
													<td class="title"><span class="sub">是否外协：</span></td>
													<td><input type="text" id="dispatchingfIsOut" name="fIsOut" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">剩余可派工：</span></td>
													<td><input type="text" id="dispatchingnoDispatchQty" name="noDispatchQty" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">加工说明：</span></td>
												<td colspan="5"><input type="text" id="dispatchingfNote" name="fNote" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub"><span class="requiredCss">*</span>员工卡号：</span></td>
													<td><input type="text" id="dispatchingfWorker" name="fWorker" class="clean_c form-control bj_color" autocomplete="off"></td>
													<td class="title"><span class="sub">员工姓名：</span></td>
													<td><input type="text" id="dispatchingfWorkerName" name="fWorkerName" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub"><span class="requiredCss">*</span>派工数量：</span></td>
													<td><input type="text" id="dispatchingfTargetQty" name="fTargetQty" class="clean_c form-control bj_color" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub"><span class="requiredCss">*</span>开工时间：</span></td>
													<td><input type="text" id="dispatchingfStartTime" name="fStartTime" class="clean_c form-control bj_color noPass" autocomplete="off"></td>
													<td class="title"><span class="sub"><span class="requiredCss">*</span>完工时间：</span></td>
													<td><input type="text" id="dispatchingfEndTime" name="fEndTime" class="clean_c form-control bj_color noPass" autocomplete="off"></td>
													<td class="title"><span class="sub">是否领料：</span></td>
													<td>
														<label style="line-height: 26px;margin-bottom: 0;">
															<input name="fIsOutStock" type="checkbox" value="1" id="dispatchingfIsOutStock" style="width: auto !important;vertical-align: middle;margin: -2px 2px 0 0;" disabled="disabled">是
														</label>
													</td>
												</tr>
												<tr>
													<td class="title"><span class="sub"><span class="requiredCss">*</span>设备：</span></td>
													<!-- 下拉框默认向上弹出，class里加dropup，标签里加data-dropup-auto="false" -->
													<td colspan="2"><select name="fMacId" id="dispatchingfMacId" class="selectpicker dropup clean_c" data-live-search="true" data-width="100%" data-style="btn-success" data-dropup-auto="false"></select></td>
												</tr>
											</table>
											<div style="width: 100%;">
												<div>
													<span style="padding-left: 17px;" class="requiredCss">注：带*为必填字段。</span>
												</div>
												<div style="text-align: center;margin-top: 10px;">
													<button type="button" class="btn btn-default" id="add_confirm" style="margin-right: 20px;">确定</button>
													<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
												</div>
											</div>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>
					<!-- 新增任务模态框 end -->
					
					<!-- 调用showModal里的queryModal，查询行 -->
					<div th:include="Production/showModal :: queryModal" />
					<div th:include="Production/customColumnModal :: customColumnModal" /></div>    
				</div>
			</div>
		</div>
	</div>
	<span id="value" style="display: none;">0</span>
	<div th:include="base :: bottom" />
	<div th:include="base :: bootstrapTable" />
	<div th:include="base :: bootstrapTable-eidt" />
	<script th:src="@{plugins/bootstrapEditable/js/bootstrap-table-editable.js}"></script>
	<div th:include="base :: ztree" />
	<!-- 车间下拉框公共js -->
	<script th:src="@{js/Production/productionPublic.js}"></script>
	<script th:src="@{js/Production/productionTask.js}"></script>
	<script th:src="@{js/Production/showModal.js}"></script>
	<script th:src="@{js/TaiZhang/productionCommon.js}"></script>
</body>
</html>
